package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author 军哥
 * @version 1.0
 * @description: 登录信息
 * @date 2024/6/5 11:22
 */

@Data
public class LoginInfoVo implements Serializable {
    @NotBlank
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$",message = "手机号格式不正确")
    private String userName;
    @NotBlank
    @Size(min = 3,max = 10,message = "密码长度在3-10位之间")
    private String userPass;
    private String userMobile;
    private String userCode;
}
